<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>债权合同管理</title>
</head>
<body>
<table>
    <caption>债权合同信息列表</caption>
    <thead>
    <tr>
        <th>序号</th>
        <th>债权借款人姓名</th>
        <th>债权借款人身份证</th>
        <th>债权借款人住址</th>
        <th>债权借款人手机号</th>
        <th>债权借款人性别</th>
        <th>债权借款人借款金额</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="creditorInfo:${credentialInfoList}">
        <td th:text="${creditorInfo.id}"></td>
        <td th:text="${creditorInfo.realName}"></td>
        <td th:text="${creditorInfo.idCard}"></td>
        <td th:text="${creditorInfo.address}"></td>
        <td th:text="${creditorInfo.phone}"></td>
        <td th:text="${creditorInfo.sex == 1 ?'男':'女'}"></td>
        <td th:text="${creditorInfo.money}"></td>
        <td>
               <span th:if="${creditorInfo.remoteFilePath==null||creditorInfo.remoteFilePath==''}">
                   <a th:href="@{|/upload/${creditorInfo.id}|}">上传</a>
               </span>
            <span th:if="${creditorInfo.remoteFilePath!=null&&creditorInfo.remoteFilePath!=''}">
                   <a th:href="@{|/download/${creditorInfo.id}|}">下载</a>
                   <a th:href="@{|/delete/${creditorInfo.id}|}">删除</a>
               </span>

        </td>


    </tr>
    </tbody>


</table>
</body>
</html>